package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.traceable.TraceableOrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.TraceableOrderDetailSaveRequest;
import com.zbkj.common.request.TraceableOrderDetailSearchRequest;
import com.zbkj.common.response.TraceableOrderDetailPageDataResponse;
import com.zbkj.common.response.TraceableOrderDetailDetailResponse;

import java.util.List;
/**
* @author dazongzi
* @description TraceableOrderDetailService 接口
* @date 2025-07-10
*/
public interface TraceableOrderDetailService extends IService<TraceableOrderDetail> {

    Boolean create(TraceableOrderDetailSaveRequest traceableOrderDetailSaveRequest);

    /**
     * 分页查询溯源订单详情表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<TraceableOrderDetailPageDataResponse> getList(TraceableOrderDetailSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改溯源订单详情表
    * @param request
    * @return
    */
    boolean update(TraceableOrderDetailSaveRequest request);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    TraceableOrderDetailDetailResponse getDetails(Integer id);

    List<TraceableOrderDetail> getListByOrderId(Integer orderId);
}